import React, { Component } from 'react';
import { Button } from 'antd-mobile';

import './ListOneView.css'

export default class List1 extends Component {

    componentDidMount() { }

    aaaClick = () => {
        console.log(8888, this.refAAA)

        this.refAAA.innerHTML = 'BBB'
    }

    render() {
        return (
            <div className='main'>
                <Button onClick={this.aaaClick}>获取dom元素</Button>
                <div ref={e => this.refAAA = e}>AAA</div>
            </div>
        )
    }
}
